#字符串格式化
# a = 15
# b = 12345678.1234567
# s = 'i love python!'
# print('a = %05d' %a)
# print('b %8.3f' %b)
# print('%17s' %s)
#print('%-17.6s' %s)
#查找字符串
# excerpts = '''孙航碘化物ID互动活动和和核对好玩的很期待多久回家萨德侯爵孙航交换机后盾嘟嘟'''
# name = input('')
# index = excerpts.find(name)
# if index > -1
# print('{}首次出现的位置索引为:{}'.format(name,index))
# print('{}在此片段中出现{}次'.format(name,excerpts.count(name)))
# else:
# print('{}没有出现在此片段中'.format(name))
#分割字符串
# strs = 'this is an example of cutting'
# strs1 = 'this is an example of cutting'
# print(strs.split())
# print(strs1.split(' ',3))
#替换字符串
# strs1 = '123 323 423'
# print(strs1.replace('23','45'))
#转换字符串
strs2 = 'aaaa——AAAA'
print(strs2.lower())
